﻿using System.Collections.Generic;
using System.Web.UI.WebControls;

namespace TheBlog.NhibernateModel.Entities
{
    [SetAudit]
    public class User : EntityBase
    {
        private IList<UserAffect> _userLikes;
        public virtual string UserName { get; set; }
        public virtual string Password { get; set; }

        public virtual IList<UserAffect> UserAffects
        {
            get
            {
                _userLikes = _userLikes ?? new List<UserAffect>();
                return _userLikes;
            }
            set { _userLikes = value; }
        }
    }
}